package practite.Demo;

public class Demo6 {
    public static void main(String[] args) {
        int[][] Array = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
//        for (int i = 0; i < Array.length; i++) {
//            for (int j = 0; j < Array[i].length; j++) {
//                System.out.println(Array[i][j]);
//
//            }
//        }
//        嵌套
//        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        int i = 0;
        while (i< Array.length){
            int j = 0;
            while (j<Array[i].length){
                System.out.println(Array[i][j]);
                j++;
            }
           i++;

        }

    }
}
